]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
iconGrid: Delete private child property when removing child
authorJonas Dreßler <verdre@v0yd.nl>
Sun, 8 Sep 2019 16:09:23 +0000 (18:09 +0200)
committerFlorian Müllner <florian.muellner@gmail.com>
Mon, 9 Sep 2019 19:39:28 +0000 (19:39 +0000)
Delete a private property we set when the child got added to make sure
the reference is deleted after the child got removed from the grid.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/704

js/ui/iconGrid.js

index e0a1e8bd8ab5879a3364589016cf99a25b8dba19..08d72aff1d37a15842dc10bd742f16be8daa0086 100644 (file)
@@ -251,6 +251,7 @@ var IconGrid = GObject.registerClass({
 
     _childRemoved(grid, child) {
         child.disconnect(child._iconGridKeyFocusInId);
+        delete child._iconGridKeyFocusInId;
     }
 
     vfunc_get_preferred_width(_forHeight) {